package com.example.fast_food_orders.model;


public class Item{
    private String id;
    private String name;
    private double price;
    private ItemType type;

    public Item(String id,String name,double price,ItemType type){
        this.id = id;
        this.name =name;
        this.price = price;
        this.type = type;
    }
//    getter和setter方法
    public String getId(){
        return id;
    }
    public void setId(String id){
        this.id =id;
    }
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }
    public double getPrice(){
        return price;
    }
    public void setPrice(double price){
        this.price = price;
    }
    public ItemType getType(){
        return type;
    }
    public void setItem(ItemType type){
        this.type = type;
    }
}